Hands-On Internet of Things with MQTT by Tim Pulver
Author:Tim Pulver [Tim Pulver]
Language: eng
Format: epub
Publisher: Packt Publishing
Published: 2019-10-03T16:00:00+00:00
Controlling the servo motor via the Serial Monitor
In the previous section, we verified the following:
Whether the Arduino can connect to the internet
Whether the Arduino can send and receive MQTT messages via shiftr.io
Whether the motor is working
Now, let's create an interface to control the servo from the Serial Monitor. Create a new sketch and save it as ch5_01_servo_serial.
Delete the boilerplate code that is automatically added to new sketches (the empty setup and loop functions) and replace the contents of your editor with the following code:
#include <Servo.h>
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Computer Vision & Pattern Recognition | Expert Systems |
Intelligence & Semantics | Machine Theory |
Natural Language Processing | Neural Networks |
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8060)
Hadoop in Practice by Alex Holmes(5788)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5638)
Test-Driven Development with Java by Alan Mellor(4967)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(4874)
Data Augmentation with Python by Duc Haba(4811)
Principles of Data Fabric by Sonia Mezzetta(4628)
Learn Blender Simulations the Right Way by Stephen Pearson(4410)
Microservices with Spring Boot 3 and Spring Cloud by Magnus Larsson(4388)
Big Data Analysis with Python by Ivan Marin(4385)
Functional Programming in JavaScript by Mantyla Dan(3873)
RPA Solution Architect's Handbook by Sachin Sahgal(3786)
The Age of Surveillance Capitalism by Shoshana Zuboff(3650)
The Infinite Retina by Robert Scoble Irena Cronin(3520)
Pretrain Vision and Large Language Models in Python by Emily Webber(3369)
Infrastructure as Code for Beginners by Russ McKendrick(3161)
Deep Learning with PyTorch Lightning by Kunal Sawarkar(3141)
Blockchain Basics by Daniel Drescher(3075)
The Rosie Effect by Graeme Simsion(2906)